package com.sp.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-04-16 16:23:59
 */
@RestController
public class ReactiveController {

    @GetMapping("/h2")
    public Mono<String> h2() {
        return Mono.just("Hello World");
    }

    @GetMapping("/hello")
    public String hello() {
        return "Hello World";
    }

    public void h2Use() {
    }
}
